﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using thinger.DataConvertLib;

namespace ModbusProject
{
    /// <summary>
    /// 创建一个变量的实体类
    /// </summary>
    public class Variable
    {
        /// <summary>
        /// 标签名称
        /// </summary>
        public string VarName { get; set; }

        /// <summary>
        /// 起始字节
        /// </summary>
        public int Start { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public DataType VarType{ get; set; }

        /// <summary>
        ///位偏移或长度
        /// </summary>
        public int OffsetOrLength { get; set; }

        /// <summary>
        /// 变量的值
        /// </summary>
        public object VarValue { get; set; }
    }
}
